package com.wss.common.utils.toast;

import ohos.aafwk.ability.AbilityPackage;
import ohos.app.Context;

public class SupportToast extends BaseToast {

    /** 吐司弹窗显示辅助类 */
    private final ToastHelper mToastHelper;

    public SupportToast(AbilityPackage application) {
        super(application);
        mToastHelper = new ToastHelper(this, application);
    }

    @Override
    public void show() {
        // 显示吐司
        mToastHelper.show();
    }

    @Override
    public void cancel() {
        // 取消显示
        mToastHelper.cancel();
    }
}
